package com.common.consts;

/**
 * @author: cent
 * @email: chenzhao@viomi.com.cn
 * @date: 2018/12/27.
 * @description:
 */
public enum RedisConsts {
    ;
    /**
     * 缓存默认时效（单位：秒）
     */
    public static final long DEFAULT_EXPIRED_TIME = 5 * 60L;
    /**
     * 项目缓存前缀
     */
    public static final String PROJECT_NAMESPACE = "viomi-device-im";
    /**
     * 缓存key分隔符
     */
    public static final String SEPARATOR = ".";
    /**
     * 授权应用缓存key
     */
    public static final String AUTH_APP_KEY = PROJECT_NAMESPACE + SEPARATOR + "auth_app";
    /**
     * 授权密钥对缓存key
     */
    public static final String AUTH_ACCESS_KEY = PROJECT_NAMESPACE + SEPARATOR + "auth_access_key";
    /**
     * 设备model缓存key
     */
    public static final String VOICE_DEVICE_MODEL_KEY = PROJECT_NAMESPACE + SEPARATOR + "voice_device_model";
    /**
     * 设备型号类别技能缓存key
     */
    public static final String VOICE_DEVICE_CATEGORY_SKILL = PROJECT_NAMESPACE + SEPARATOR + "voice_device_category_skill";
    /**
     * 设备型号技能缓存key
     */
    public static final String VOICE_DEVICE_MODEL_SKILL = PROJECT_NAMESPACE + SEPARATOR + "voice_device_model_skill";
    /**
     * 接口请求随机数缓存key
     */
    public static final String AUTH_NOISE = PROJECT_NAMESPACE + SEPARATOR + "auth_noise";

}
